<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: register.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";

$avloserid=$_POST['ud_avloserid'];
$klasse=$_POST['klasse'];
$utgaar=$_POST['utgaar'];
$oppkjoring_klasse=$_POST['oppkjoring_klasse'];
$oppkjoring_klasse_a=$_POST['oppkjoring_klasse_a'];
$oppkjoring_klasse_b=$_POST['oppkjoring_klasse_b'];
$oppkjoring_klasse_c=$_POST['oppkjoring_klasse_c'];
$oppkjoring_klasse_d=$_POST['oppkjoring_klasse_d'];
$oppkjoring_klasse_e=$_POST['oppkjoring_klasse_e'];

$db = mysql_connect($GLOBALS['db_host'], $GLOBALS['db_user'], $GLOBALS['db_password']);
mysql_select_db($GLOBALS['db_name'], $db);  

$query = "UPDATE forerkort SET klasse='$klasse', utgaar='$utgaar', oppkjoring_klasse='$oppkjoring_klasse', oppkjoring_klasse_a='$oppkjoring_klasse_a', oppkjoring_klasse_b='$oppkjoring_klasse_b', oppkjoring_klasse_c='$oppkjoring_klasse_c', oppkjoring_klasse_d='$oppkjoring_klasse_d', oppkjoring_klasse_e='$oppkjoring_klasse_e' WHERE avloserid='$avloserid'";
mysql_query($query);

opentable($locale['401']);

echo $locale['global_107'];
closetable();

header("Refresh: 10; url='profil.php?avloserid=$avloserid'");

require_once THEMES."templates/footer.php";
?>
